const Linter = require("eslint").Linter;
const linter = new Linter();
const eventListener = require('../lib/rules/event-listener');
const eventNotify = require('../lib/rules/event-notify');
const eventOn = require('../lib/rules/event-on');

linter.defineRules({
	'event-listener': {...eventListener},
	'event-notify': {...eventNotify},
	'event-on': {...eventOn},
});
const result1 = linter.verify(`Page({
	onReady() {
		document.addEventListener('keydown', this.addComboKeyEvent);
	}
})`, {
	parserOptions: {
		ecmaVersion: '2018'
	},
	rules: {
		'event-listener': 'error',
		'event-notify': 'error',
		'event-on': 'error'
	},
});
console.log(result1);